//
//  FirstCellView.m
//  product_B
//
//  Created by zyc on 16/5/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "FirstCellView.h"

@implementation FirstCellView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = Kcolor(247, 247, 247);
//        self.alpha = 0.8;
        _headerLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, 100, 30)];
//        NSArray *array = @[@"音乐故事",@"歌词",@"歌曲信息"];
        _headerLabel.text = @"音乐故事";
        [_headerLabel setFont:[UIFont fontWithName:@"GurmukhiMN-Bold" size:17]];
        
        _story = [UIButton buttonWithType:UIButtonTypeSystem];
        _story.frame = CGRectMake(kWidth - 100, 5, 20, 20);
        [_story setBackgroundImage:[UIImage imageNamed:@"故事.png"] forState:UIControlStateNormal];
//        [_story addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
        _story.tag = 1;
        [self addSubview:_story];
        
        _lyric = [UIButton buttonWithType:UIButtonTypeSystem];
        _lyric.frame = CGRectMake(kWidth - 60, 5, 20, 20);
        [_lyric setBackgroundImage:[UIImage imageNamed:@"歌词.png"] forState:UIControlStateNormal];
//        [_lyric addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
        _lyric.tag = 2;
        [self addSubview:_lyric];
        
        _info = [UIButton buttonWithType:UIButtonTypeSystem];
        _info.frame = CGRectMake(kWidth - 20, 5, 20, 20);
        [_info setBackgroundImage:[UIImage imageNamed:@"信息.png"] forState:UIControlStateNormal];
//        [_info addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
        _info.tag = 3;
        [self addSubview:_info];
        
        [self addSubview:_headerLabel];
    }
    return self;
}


@end
